package lab02.test37;

public class Undergraduate extends Student{
    //3门课程的平均分数超过60分即表示通过
    Undergraduate(String i, double a,double b,double c) {
        this.name=i;
        this.scores[0]=90;
        this.scores[1]=89;
        this.scores[2]=95;
        this.average();
    }
    public void Display(){
        if(this.average()>=60){
            System.out.println(name+"通过!!!");
        }
        else{
            System.out.println(name+"没通过!!!");
        }
    }

}
